<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>E接口监测系统</title>
    <link rel="stylesheet" type="text/css" th:href="@{/element-ui/lib/theme-chalk/index.css}"/>
    <link th:href="@{/css/other.css}" rel="stylesheet"/>
    <link th:href="@{/svg/iconfont.css}" rel="stylesheet"/>
    <link th:href="@{/templatesJs/util/NetworkPacketsParsing.css}" rel="stylesheet"/>
</head>
<body>
<div id="app" class="pd-20">
    <div>
        <div style="display: flex;" class="bg-iframe-bar">
            <div class="iframe-bar-el-row">
                <div>
                    <el-date-picker
                            v-model="form.startTime"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="开始日期时间"
                    >
                    </el-date-picker>
                    <el-date-picker
                            v-model="form.endTime"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="结束日期时间"
                    >
                    </el-date-picker>
                    <el-input
                            placeholder="MSISDN"
                            v-model="form.msIsdn"
                            clearable>
                    </el-input>
                    <el-input
                            placeholder="IMSI"
                            v-model="form.IMSI"
                            clearable>
                    </el-input>
                    <el-input
                            placeholder="机车号"
                            v-model="form.locoNum"
                            clearable>
                    </el-input>
                    <el-input
                            placeholder="车次"
                            v-model="form.trainNum"
                            clearable>
                    </el-input>
                    <el-input
                            placeholder="RBC号码"
                            v-model="form.rbcNum"
                            clearable>
                    </el-input>
                    <el-input
                            placeholder="线路"
                            v-model="form.lineName"
                            clearable>
                    </el-input>
                    <el-input
                            placeholder="小区"
                            v-model="form.lacCiName"
                            clearable>
                    </el-input>
                </div>
                <div >
                    <el-button id="queryBtn" type="primary"
                               @click="queryData()"
                    ><i class="iconfont ">&#xe639;</i>查询
                    </el-button>
                    <el-button id="queryBtn"
                               @click="resetForm()"
                    ><i class="iconfont ">&#xe628;</i>重置
                    </el-button>
                    <el-button id="exportBtn"
                               @click="exportData()"
                    ><i class="iconfont ">&#xe643;</i>导出
                    </el-button>
                </div>
            </div>
        </div>

        <div style="display: flex;" class="bg-iframe-tab">
            <template>
                <div style="display: flex;flex-direction:column;width: 100% !important;max-height:100%">
                    <el-table
                            ref="listData"
                            :data="listData"
                            v-loading="loading"
                            :header-cell-style="headStyle"
                            border
                            :height="'100% !important'"
                            :cell-style="rowStyle"
                            @selection-change="handleSelectionChange"
                            @row-click="rowClick"
                            style="max-width: 100%!important">
                        <el-table-column type="index" label="序号" width="60" :index="typeIndex" fixed="left" :resizable="false"></el-table-column>
                        <el-table-column type="dataNum" label="数据编号" v-if="false" fixed="left" :resizable="false"></el-table-column>
<!--                        <el-table-column type="selection" width="60" fixed="left" :resizable="false"></el-table-column>-->
                        <el-table-column prop="recTime" width="200" label="触发时间" :show-overflow-tooltip='true' fixed="left" :resizable="false" :formatter="dateFormat"></el-table-column>
                        <el-table-column prop="msIsdn" width="120" label="MSISDN" :show-overflow-tooltip='true' :resizable="false" ></el-table-column>
                        <el-table-column prop="IMSI" width="120" label="IMSI" :show-overflow-tooltip='true' :resizable="false" ></el-table-column>
                        <el-table-column prop="locoNum" width="120" label="机车号" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="trainNum" width="120" label="车次" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="rbcNum" width="120" label="RBC号码" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="lineName" width="120" label="线路" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="lacCiName" width="120" label="小区" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="kilo" width="120" label="公里标" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="dataDirStr" width="120" label="传送方向" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="crcStr" width="120" label="CRC校验" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="c3DataTypeStr" width="120" label="数据类型" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="hdlcMsgTypeStr" width="120" label="链路层" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="npduMsgTypeStr" width="120" label="网络层" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="tpduMsgTypeStr" width="120" label="传输层" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="sapduMsgTypeStr" width="120" label="安全层" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="apduMsgType" width="120" label="应用层" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="apduTTrain" width="120" label="发送T_Train" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="apduTTrainCfm" width="120" label="确认T_Train" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="hdlcNs" width="120" label="上行帧序号" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="hdlcNr" width="120" label="下行帧序号" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="hdlcPF" width="120" label="RR帧类型" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="q931ReleaseCauseStr" width="120" label="拆链原因" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="lrbgIDName" width="120" label="LRBG" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="speed" width="120" label="速度(km/h)" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="c3ModeStr" width="120" label="运行模式" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="devNum" width="120" label="设备号" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="portNum" width="120" label="端口号" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="slotNum" width="120" lab1el="时隙号" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="subSlotNum" width="120" label="子时隙号" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="dataLen" width="120" label="数据长度" :show-overflow-tooltip='true' :resizable="false"></el-table-column>
                        <el-table-column prop="dataContent" width="200" label="数据内容" :show-overflow-tooltip='true' :resizable="false" fixed="right" ></el-table-column>
<!--                        <el-table-column prop="cdrIndexPri" width="120" label="PRI口索引号" :show-overflow-tooltip='true' :resizable="false" fixed="right"></el-table-column>-->
                    </el-table>

                    <div>
                        <network-packets-parsing :src="src" :type="type">
                        </network-packets-parsing>
                    </div>


                    <div style="margin-top: 20px;margin-bottom:20px;width: 100%">
                        <el-pagination
                                background
                                style="float: right"
                                @size-change="handleSizeChange"
                                @current-change="handleCurrentChange"
                                :current-page="currentPage"
                                :page-sizes="[10, 25, 50, 100]"
                                :page-size="pageSize"
                                layout="total, sizes, prev, pager, next, jumper"
                                :total="total">
                        </el-pagination>
                    </div>
                </div>
            </template>

        </div>
    </div>

</div>

</body>
<input id="ctxPath" th:value="${#httpServletRequest.getContextPath()}" hidden>
</html>
<script type="text/javascript" th:src="@{/js/jquery/jquery-3.3.1.js}"></script>
<script type="text/javascript" th:src="@{/vue/vue.js}"></script>
<script type="text/javascript" th:src="@{/vue/moment.min.js}"></script>
<script type="text/javascript" th:src="@{/element-ui/lib/index.js}"></script>
<script type="module" th:src="@{/templatesJs/EInterfaceCsd/eCsdList.js}"></script>



